﻿<phone:PhoneApplicationPage 
    x:Class="Lotto_WP7.AboutPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:sd="clr-namespace:SpinDotters.Core;assembly=SpinDotters.Core"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:localRes="clr-namespace:Lotto_WP7.Resources"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">

    <phone:PhoneApplicationPage.Resources>
        <!--
             Important: After editing Strings.resx the access modifier
                        internal Strings() MUST BE CHANGED TO: public Strings()
                        see: http://timheuer.com/blog/archive/2009/08/26/silverlight-string-localization.aspx
                             for more info
        -->
        <localRes:Strings x:Key="LocStrings" />

    </phone:PhoneApplicationPage.Resources>

    <StackPanel>
        
        <TextBlock x:Name="PageTitle"
                       Text="{Binding Source={StaticResource LocStrings}, Path=AboutLotto}"
                       Margin="9,-7,0,0"
                       Style="{StaticResource PhoneTextTitle1Style}"/>
        
        <Grid Background="{StaticResource PhoneAccentBrush}"
              Width="200" Height="200"
              Margin="50">
            <Grid.Clip>
                <EllipseGeometry Center="100,100"
                                 RadiusX="80" RadiusY="80" />
            </Grid.Clip>
            <Image Source="Background.png" />
            <Ellipse Stroke="{StaticResource PhoneAccentBrush}"
                     StrokeThickness="6"
                     Width="160" Height="160" />
                         
        </Grid>
            
        <sd:Ticker BorderBrush="{StaticResource PhoneChromeBrush}"
                   Foreground="Black"
                   Background="{StaticResource PhoneAccentBrush}"
                   FontSize="36"
                   Height="110"
                   Reflective="True">
            <TextBlock Text="{Binding Source={StaticResource LocStrings}, Path=LottoNumberGenerator}" />
            <TextBlock Text="{Binding Source={StaticResource LocStrings}, Path=forWindowsPhone}" />
            <TextBlock Text="{StaticResource LottoVersion}" />
            <TextBlock Text="Powered by SpinDotters" />
            <TextBlock Text="(C) 2011 Norbert Huffschmid" />
            <TextBlock Text="http://www.spindotters.net/" />
        </sd:Ticker>

        <Button x:Name="closeButton" 
                Margin="50"
                HorizontalAlignment="Center"
                Click="closeButton_Click">
            <TextBlock Text="{Binding Source={StaticResource LocStrings}, Path=Close}" />
        </Button>

    </StackPanel>
 
</phone:PhoneApplicationPage>
